package com.yb.guigu.pick.security.encoder;

import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * Copyright (C), 2022-2023, 姚兵
 * Author: 32210
 * Date: 2023/6/3 17:41
 * FileName: GuiguPasswordEncoder
 * Description:
 */
public interface GuiguPasswordEncoder extends PasswordEncoder {


    public default boolean support(String encryptedType){
        return false;
    }

    @Override
    public default String encode(CharSequence rawPassword) {
        return "";
    }
    public default String encode(String encryptedType,CharSequence rawPassword){
        return "";
    }

    @Override
    public default boolean matches(CharSequence rawPassword, String encodedPassword) {
        return false;
    }


    public  default boolean matches(String encryptedType,CharSequence rawPassword, String encodedPassword){
        return false;
    }
}
